<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    protected $mysql;

    public function _initialize(){
        $this->mysql = new \Mysql\Controller\IndexController();
    }

    public function index(){
        $this->display();
    }

    public function city(){
        //和$name这个城市相关的处理
        $this->mysql->test();
    }

    public function demo(){
        echo 111;
    }
}